/*
 * @Description: 测试类
 * 
 * @Author: rendc
 * 
 * @Date: 2025-08-07 11:34:28
 * 
 * @LastEditors: rendc
 * 
 * @LastEditTime: 2025-08-07 14:22:20
 */

public class Test {

  public static void main(String[] args) {
    Student s1 = new Student("张三", 20);
    Student s2 = new Student("张三", 20);
    Object object = new Object();
    // System.out.println(s1.equals(object));
    // System.out.println(s1.equals(s1));
    System.out.println(s1.equals(s2));
    // false
    // System.out.println(s1 == object);
    // false
    System.out.println("s1.hashCode:" + s1.hashCode());
    System.out.println("s2.hashCode:" + s2.hashCode());
  }
}